package com.pojoin.cms.service;

import java.util.List;

import com.pojoin.cms.domain.User;
import com.pojoin.cms.util.pager.Pager;

public interface UserService {
	
	/**
	 * 获取所有用户
	 * @param pager
	 * @return
	 */
	public List<User> getAllUsers(Pager pager);

	/**
	 * 根据用户获取用户
	 * @param userName
	 * @return
	 */
	public User getUserByUserName(String userName);

	/**
	 * 添加用户
	 * @param user
	 * @return TODO
	 */
	public User addUser(User user);

	/**
	 * 根据id找用户
	 * @param userId
	 * @return
	 */
	public User fingById(Long userId);

}
